<template>
    <swiper class="DetailSwiper" v-if="topImages.length">
        <swiper-item v-for="(item,index) in topImages"
                     class="swiper-item"
                     :key="index">
            <img :src="item" alt="">
        </swiper-item>
    </swiper>
</template>

<script>
    import {Swiper,SwiperItem} from 'components/common/swiper'

    export default {
        name: "DetailShowSwiper",
        components:{
            Swiper,
            SwiperItem
        },
        props:{
            topImages:{
                type:Array,
                default(){
                    return[]
                }
            }
        },
        created(){

        }
    }
</script>

<style scoped>
    .swiper-item{
        height: 300px;
        /*overflow: hidden;*/
        text-align: center;
    }
</style>
